package top.luoblog.observer.withoutjdk;

import org.junit.Test;

/**
 * @author : luo
 */
public class ObserverTest {

    @Test
    public void test1() throws Exception {
        CounterSubject subject = new CounterSubject();
        QueryObserver queryObserver = new QueryObserver(subject);
        SaveObserver saveObserver = new SaveObserver(subject);
        subject.setCount(2);
    }

}
